package com.leadership.training.entity.project;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import com.leadership.training.entity.trainee.Trainee;


/**
 * 问卷调查状态
 * 
 * @author Rockett
 *
 */
@Entity
@Table(name = "t_training_survey")
public class TrainingSurvey {
    
	/**
	 * ID
	 */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    /**
     * 项目-期
     */
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    private ProjectPhase projectPhase;
    
    /**
     * 学员
     */
    @ManyToOne(fetch = FetchType.LAZY, optional = false)
    private Trainee trainee;
    

    /**
     * 状态
     */
    private String status;
    
    /**
     * 
     */
    @Column(name = "is_disabled")
    private boolean disabled;

	/**
     * The default constructor
     */
    public TrainingSurvey() {
    	this.disabled=false;
    }
    

    /**
     * @return the id
     */
    public Long getId() {
        return id;
    }


    /**
     * @param id the id to set
     */
    public void setId(Long id) {
        this.id = id;
    }




	/**
	 * @return the disabled
	 */
	public boolean isDisabled() {
		return disabled;
	}


	/**
	 * @param disabled the disabled to set
	 */
	public void setDisabled(boolean disabled) {
		this.disabled = disabled;
	}


	/**
	 * @return the trainee
	 */
	public Trainee getTrainee() {
		return trainee;
	}


	/**
	 * @param trainee the trainee to set
	 */
	public void setTrainee(Trainee trainee) {
		this.trainee = trainee;
	}


	/**
	 * @return the projectPhaseId
	 */
	public ProjectPhase getProjectPhase() {
		return projectPhase;
	}


	/**
	 * @param projectPhaseId the projectPhaseId to set
	 */
	public void setProjectPhase(ProjectPhase projectPhase) {
		this.projectPhase = projectPhase;
	}


	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}


	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}


}